#ifndef HEALTHASSESSMENT_H
#define HEALTHASSESSMENT_H

#include <QWidget>
#include <QLineEdit>
#include <QPushButton>
#include <QVBoxLayout>
#include <QLabel>
#include <QTcpSocket>
#include <QMap>

class HealthAssessment : public QWidget {
    Q_OBJECT

public:
    HealthAssessment(QTcpSocket *socket, QWidget *parent = nullptr);

private slots:
    void onSaveButtonClicked();
    void onBackButtonClicked();

private:
    void setInputFieldStyle(QLineEdit *lineEdit);
    QPushButton* createStyledButton(const QString &text, const QString &color);

    QLineEdit *patientidEdit;
    QLineEdit *patientnameEdit;
    QLineEdit *heightEdit;
    QLineEdit *weightEdit;
    QLineEdit *bloodPressureEdit;
    QLineEdit *heartRateEdit;
    QTcpSocket *tcpSocket;
};

#endif // HEALTHASSESSMENT_H
